#!/usr/bin/env python
# vim:fileencoding=utf-8

from calibre.web.feeds.news import AutomaticNewsRecipe


class HackADayRecipe(AutomaticNewsRecipe):
    __author__     = 'rui-rebelo'
    title          = 'Hack a Day'
    description    = (
        'Hackaday is a website and community focused on hardware hacking, technology projects, and DIY electronics.'
        ' It features daily articles about innovative projects, news, tutorials, and the latest in hardware engineering news.')
    oldest_article = 10
    max_articles_per_feed = 100
    auto_cleanup   = True
    language       = 'en-US'

    publisher      = 'Hack a Day'

    feeds          = [
        ('Hack a Day', 'https://hackaday.com/blog/feed/'),
    ]

    cover_url = 'https://hackaday.com/wp-content/uploads/2020/07/hackaday-logo-with-text-opengraph-default-image.jpg'
